<?php
$postData=json_decode(json_encode(simplexml_load_string($GLOBALS['HTTP_RAW_POST_DATA'], 'SimpleXMLElement', LIBXML_NOCDATA)), true);
if ($postData['trade_type']=='JSAPI'){
    require_once 'lib/WxPay.JSAPI.Config.php';
}else{
    require_once 'lib/WxPay.Config.php';
}
